//
//  ShowTicketCell.m
//  AirTicket
//
//  Created by zou leeging on 10-12-28.
//  Copyright 2010 aircococ. All rights reserved.
//

#import "ShowTicketCell.h"


@implementation ShowTicketCell

@synthesize fltno;
@synthesize classtype;
@synthesize org;
@synthesize dst;
@synthesize strtime;
@synthesize arrtime;
@synthesize priceAndCount;
@synthesize backPic;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
		
		backPic = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 320, 59)];
		[self.contentView addSubview:backPic];
		[backPic release];
		
		priceAndCount = [[UILabel alloc]initWithFrame:CGRectMake(5, 10, 100, 30)];
		priceAndCount.backgroundColor = [UIColor clearColor];
		priceAndCount.font = [UIFont systemFontOfSize:14];
		priceAndCount.textColor = [UIColor whiteColor];
		[self.contentView addSubview:priceAndCount];
		[priceAndCount release];
		
		fltno = [[UILabel alloc]initWithFrame:CGRectMake(120, 5, 60, 20)];
		fltno.backgroundColor = [UIColor clearColor];
		fltno.font = [UIFont systemFontOfSize:14];
		fltno.textColor = [UIColor colorWithRed:0.01 green:0.45 blue:0.93 alpha:1.0f];
		[self.contentView addSubview:fltno];
		[fltno release];
		
		classtype = [[UILabel alloc]initWithFrame:CGRectMake(120, 30, 60, 20)];
		classtype.backgroundColor = [UIColor clearColor];
		classtype.font = [UIFont systemFontOfSize:14];
		classtype.textColor = [UIColor colorWithRed:0.01 green:0.45 blue:0.93 alpha:1.0f];
		[self.contentView addSubview:classtype];
		[classtype release];
		
		org = [[UILabel alloc]initWithFrame:CGRectMake(185, 5, 70, 20)];
		org.backgroundColor = [UIColor clearColor];
		org.font = [UIFont systemFontOfSize:14];
		org.textColor = [UIColor colorWithRed:0.01 green:0.45 blue:0.93 alpha:1.0f];
		[self.contentView addSubview:org];
		[org release];
		
		dst = [[UILabel alloc]initWithFrame:CGRectMake(185, 30, 70, 20)];
		dst.backgroundColor = [UIColor clearColor];
		dst.font = [UIFont systemFontOfSize:14];
		dst.textColor = [UIColor colorWithRed:0.01 green:0.45 blue:0.93 alpha:1.0f];
		[self.contentView addSubview:dst];
		[dst release];
		
		strtime = [[UILabel alloc]initWithFrame:CGRectMake(250, 5, 60, 20)];
		strtime.backgroundColor = [UIColor clearColor];
		strtime.textColor = [UIColor colorWithRed:0.01 green:0.45 blue:0.93 alpha:1.0f];
		[self.contentView addSubview:strtime];
		[strtime release];
		
		arrtime = [[UILabel alloc]initWithFrame:CGRectMake(250, 30, 60, 20)];
		arrtime.backgroundColor = [UIColor clearColor];
		arrtime.textColor = [UIColor colorWithRed:0.01 green:0.45 blue:0.93 alpha:1.0f];
		[self.contentView addSubview:arrtime];
		[arrtime release];
		
		
    }
    return self;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state.
}


- (void)dealloc {
    [super dealloc];
}


@end
